<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>赠送礼物</title>
  <!-- Bootstrap 5 CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
  
  <style>
    :root {
      --primary: #4F46E5;
      --secondary: #6B7280;
      --light: #F9FAFB;
      --dark: #1F2937;
      --white: #FFFFFF;
      --border: #E5E7EB;
      --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
      
      /* 不同风格主题色 */
      --style1: #3B82F6; /* 科技蓝 */
      --style2: #EC4899; /* 活力粉 */
      --style3: #10B981; /* 生态绿 */
      --style4: #F59E0B; /* 温暖橙 */
      --style5: #8B5CF6; /* 梦幻紫 */
      --style6: #111827; /* 商务黑 */
    }
    
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color: #f5f5f5;
      color: var(--dark);
      min-height: 100vh;
      padding: 0;
      margin: 0;
      transition: background-color 0.3s ease;
    }
    
    .container {
      max-width: 420px;
      margin: 0 auto;
      background-color: var(--white);
      min-height: 100vh;
      box-shadow: var(--shadow);
      overflow: hidden;
      position: relative;
      transition: background-color 0.3s ease;
    }
    
    /* 主页面容器 */
    .send-gift-page {
      display: none;
      min-height: 100vh;
      flex-direction: column;
    }
    
    .send-gift-page.active {
      display: flex;
      animation: fadeIn 0.3s ease forwards;
    }
    
    /* 顶部导航栏 */
    .page-header {
      padding: 18px 20px;
      position: relative;
      text-align: center;
      border-bottom: 1px solid var(--border);
      background-color: var(--white);
      transition: all 0.3s ease;
      z-index: 10;
    }
    
    .page-title {
      font-size: 18px;
      font-weight: 600;
      margin: 0;
    }
    
    .header-back {
      position: absolute;
      left: 20px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--dark);
      font-size: 20px;
      cursor: pointer;
      transition: color 0.3s ease, transform 0.2s ease;
    }
    
    .header-back:active {
      transform: translateY(-50%) scale(0.9);
    }
    
    .header-actions {
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
    }
    
    .header-btn {
      background: none;
      border: none;
      color: var(--dark);
      font-size: 18px;
      cursor: pointer;
      margin-left: 15px;
      transition: color 0.3s ease, transform 0.2s ease;
    }
    
    .header-btn:active {
      transform: scale(0.9);
    }
    
    /* 接收者信息 */
    .recipient-info {
      padding: 16px 20px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      background-color: var(--white);
    }
    
    .recipient-avatar {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      object-fit: cover;
      margin-right: 15px;
      border: 2px solid transparent;
      transition: all 0.3s ease;
    }
    
    .recipient-details {
      flex-grow: 1;
    }
    
    .recipient-name {
      font-size: 17px;
      font-weight: 600;
      margin-bottom: 4px;
    }
    
    .recipient-status {
      font-size: 13px;
      color: var(--secondary);
    }
    
    /* 礼物分类 */
    .gift-categories {
      padding: 12px 20px;
      border-bottom: 1px solid var(--border);
      overflow-x: auto;
      white-space: nowrap;
      background-color: var(--white);
    }
    
    .category-scroll {
      display: inline-flex;
    }
    
    .category-item {
      padding: 6px 16px;
      margin-right: 10px;
      border-radius: 20px;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.2s ease;
      background-color: var(--light);
      color: var(--secondary);
    }
    
    .category-item.active {
      background-color: var(--primary);
      color: white;
    }
    
    /* 礼物列表 */
    .gift-grid {
      flex-grow: 1;
      padding: 20px;
      overflow-y: auto;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 15px;
      background-color: var(--light);
      transition: background-color 0.3s ease;
    }
    
    .gift-box {
      background-color: var(--white);
      border-radius: 12px;
      padding: 15px 10px;
      text-align: center;
      box-shadow: var(--shadow);
      transition: all 0.2s ease;
      cursor: pointer;
      position: relative;
    }
    
    .gift-box:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    }
    
    .gift-box.selected::after {
      content: '\f00c';
      font-family: 'FontAwesome';
      position: absolute;
      top: -5px;
      right: -5px;
      width: 24px;
      height: 24px;
      background-color: var(--primary);
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
    }
    
    .gift-icon {
      width: 50px;
      height: 50px;
      margin: 0 auto 10px;
      background-color: rgba(79, 70, 229, 0.1);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--primary);
      font-size: 24px;
    }
    
    .gift-title {
      font-size: 14px;
      font-weight: 500;
      margin-bottom: 5px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    .gift-price {
      font-size: 13px;
      color: var(--primary);
      font-weight: 600;
    }
    
    /* 留言区域 */
    .message-area {
      padding: 15px 20px;
      border-top: 1px solid var(--border);
      background-color: var(--white);
    }
    
    .message-input {
      width: 100%;
      padding: 12px 15px;
      border: 1px solid var(--border);
      border-radius: 25px;
      font-size: 14px;
      resize: none;
      height: 50px;
      transition: all 0.2s ease;
    }
    
    .message-input:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
    }
    
    .message-hint {
      font-size: 12px;
      color: var(--secondary);
      margin-top: 8px;
      text-align: right;
    }
    
    /* 底部操作栏 */
    .action-bar {
      padding: 15px 20px;
      border-top: 1px solid var(--border);
      background-color: var(--white);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    
    .total-info {
      display: flex;
      align-items: center;
    }
    
    .total-label {
      font-size: 14px;
      color: var(--secondary);
      margin-right: 5px;
    }
    
    .total-amount {
      font-size: 17px;
      font-weight: 600;
      color: var(--primary);
    }
    
    .send-btn {
      background-color: var(--primary);
      color: white;
      border: none;
      border-radius: 25px;
      padding: 10px 25px;
      font-size: 16px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
    }
    
    .send-btn:active {
      transform: scale(0.98);
      box-shadow: 0 1px 4px rgba(79, 70, 229, 0.2);
    }
    
    .send-btn:disabled {
      background-color: var(--secondary);
      cursor: not-allowed;
      box-shadow: none;
    }
    
    /* 样式切换器 */
    .style-switcher {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1010;
      background-color: white;
      border-radius: 8px;
      box-shadow: var(--shadow);
      overflow: hidden;
      width: 180px;
      transition: all 0.3s ease;
      transform: translateX(0);
      opacity: 1;
    }
    
    .style-switcher.hidden {
      transform: translateX(200px);
      opacity: 0;
      pointer-events: none;
    }
    
    .switcher-toggle {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1020;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: var(--primary);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: var(--shadow);
      border: none;
      font-size: 18px;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    
    .switcher-header {
      padding: 10px 16px;
      font-size: 14px;
      font-weight: 600;
      border-bottom: 1px solid #eee;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .switcher-close {
      background: none;
      border: none;
      color: var(--secondary);
      font-size: 16px;
      cursor: pointer;
    }
    
    .switcher-option {
      padding: 12px 16px;
      font-size: 14px;
      cursor: pointer;
      transition: background-color 0.2s;
      display: flex;
      align-items: center;
    }
    
    .switcher-color {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      margin-right: 10px;
    }
    
    .switcher-option:hover {
      background-color: #f9f9f9;
    }
    
    .switcher-option.active {
      background-color: var(--primary);
      color: white;
    }
    
    /* 风格1：科技蓝 */
    .style-1 {
      --primary: var(--style1);
    }
    
    .style-1 .gift-box:hover {
      box-shadow: 0 6px 12px rgba(59, 130, 246, 0.1);
    }
    
    .style-1 .gift-icon {
      background-color: rgba(59, 130, 246, 0.1);
      color: var(--primary);
    }
    
    /* 风格2：活力粉 */
    .style-2 {
      --primary: var(--style2);
    }
    
    .style-2 .page-header {
      background: linear-gradient(45deg, var(--primary), #F472B6);
      color: white;
      border-bottom: none;
      box-shadow: 0 2px 15px rgba(236, 72, 153, 0.2);
    }
    
    .style-2 .header-back,
    .style-2 .header-btn,
    .style-2 .page-title {
      color: white;
    }
    
    .style-2 .gift-box {
      border-radius: 15px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }
    
    .style-2 .gift-grid {
      background-color: #FAFAFA;
    }
    
    .style-2 .gift-icon {
      background-color: rgba(236, 72, 153, 0.1);
      color: var(--primary);
    }
    
    .style-2 .recipient-avatar {
      border-color: rgba(236, 72, 153, 0.2);
    }
    
    /* 风格3：生态绿 */
    .style-3 {
      --primary: var(--style3);
    }
    
    .style-3 .container {
      background-color: #F8FAFC;
    }
    
    .style-3 .gift-box {
      border-radius: 8px;
      border: 1px solid rgba(16, 185, 129, 0.1);
    }
    
    .style-3 .gift-grid {
      background-color: #F0FDF4;
    }
    
    .style-3 .gift-icon {
      background-color: rgba(16, 185, 129, 0.1);
      color: var(--primary);
    }
    
    .style-3 .category-item.active {
      background-color: var(--primary);
      color: white;
    }
    
    /* 风格4：温暖橙 */
    .style-4 {
      --primary: var(--style4);
    }
    
    .style-4 .page-header {
      background-color: white;
      border-bottom: none;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    
    .style-4 .gift-box {
      background-color: white;
      border-radius: 10px;
      box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
    }
    
    .style-4 .recipient-name {
      color: var(--primary);
    }
    
    .style-4 .gift-icon {
      background-color: rgba(245, 158, 11, 0.1);
      color: var(--primary);
    }
    
    /* 风格5：梦幻紫 */
    .style-5 {
      --primary: var(--style5);
    }
    
    .style-5 .container {
      background-color: #FCFAFF;
    }
    
    .style-5 .gift-box {
      background-color: white;
      border-radius: 16px;
      padding: 18px 10px;
    }
    
    .style-5 .gift-grid {
      background-color: #F9FAFF;
      gap: 20px;
    }
    
    .style-5 .gift-icon {
      background-color: rgba(139, 92, 246, 0.1);
      color: var(--primary);
      border-radius: 16px;
      width: 55px;
      height: 55px;
    }
    
    .style-5 .send-btn {
      border-radius: 30px;
      box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
    }
    
    /* 风格6：商务黑 */
    .style-6 {
      --primary: #60A5FA;
      --secondary: #9CA3AF;
      --light: #1F2937;
      --dark: #F9FAFB;
      --white: #111827;
      --border: #374151;
      --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    
    .style-6 body {
      background-color: #030712;
    }
    
    .style-6 .container {
      background-color: var(--white);
    }
    
    .style-6 .page-header {
      background-color: var(--light);
      border-bottom-color: var(--border);
    }
    
    .style-6 .header-back,
    .style-6 .header-btn,
    .style-6 .page-title {
      color: var(--dark);
    }
    
    .style-6 .gift-box {
      background-color: var(--light);
      border: 1px solid var(--border);
    }
    
    .style-6 .gift-title {
      color: #E5E7EB;
    }
    
    .style-6 .recipient-name {
      color: #E5E7EB;
    }
    
    .style-6 .style-switcher {
      background-color: var(--light);
    }
    
    .style-6 .switcher-header {
      border-bottom-color: var(--border);
      color: var(--dark);
    }
    
    .style-6 .switcher-option {
      color: var(--dark);
    }
    
    .style-6 .switcher-option:hover {
      background-color: rgba(255, 255, 255, 0.1);
    }
    
    /* 动画效果 */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    /* 响应式调整 */
    @media (max-width: 360px) {
      .gift-grid {
        gap: 10px;
        padding: 15px;
      }
      
      .gift-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
      }
      
      .send-btn {
        padding: 10px 20px;
        font-size: 15px;
      }
    }
  </style>
</head>
<body class="style-1">
  <!-- 样式切换器 -->
  <button class="switcher-toggle">
    <i class="fa fa-paint-brush"></i>
  </button>
  
  <div class="style-switcher hidden">
    <div class="switcher-header">
      选择送礼页面样式
      <button class="switcher-close"><i class="fa fa-times"></i></button>
    </div>
    <div class="switcher-option active" data-style="1">
      <span class="switcher-color" style="background-color: var(--style1);"></span>
      科技蓝
    </div>
    <div class="switcher-option" data-style="2">
      <span class="switcher-color" style="background-color: var(--style2);"></span>
      活力粉
    </div>
    <div class="switcher-option" data-style="3">
      <span class="switcher-color" style="background-color: var(--style3);"></span>
      生态绿
    </div>
    <div class="switcher-option" data-style="4">
      <span class="switcher-color" style="background-color: var(--style4);"></span>
      温暖橙
    </div>
    <div class="switcher-option" data-style="5">
      <span class="switcher-color" style="background-color: var(--style5);"></span>
      梦幻紫
    </div>
    <div class="switcher-option" data-style="6">
      <span class="switcher-color" style="background-color: var(--style6);"></span>
      商务黑
    </div>
  </div>
  
  <div class="container">
    <!-- 风格1：科技蓝 -->
    <div class="send-gift-page active" id="page1">
      <div class="page-header">
        <button class="header-back"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">赠送礼物</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-history"></i></button>
        </div>
      </div>
      
      <div class="recipient-info">
        <img src="https://picsum.photos/id/64/200/200" alt="接收者头像" class="recipient-avatar">
        <div class="recipient-details">
          <div class="recipient-name">张明</div>
          <div class="recipient-status">在线 · 刚刚查看了你的动态</div>
        </div>
      </div>
      
      <div class="gift-categories">
        <div class="category-scroll">
          <div class="category-item active">全部礼物</div>
          <div class="category-item">热门推荐</div>
          <div class="category-item">虚拟礼物</div>
          <div class="category-item">实物礼品</div>
          <div class="category-item">会员特权</div>
          <div class="category-item">定制礼物</div>
        </div>
      </div>
      
      <div class="gift-grid">
        <div class="gift-box" data-price="99">
          <div class="gift-icon"><i class="fa fa-diamond"></i></div>
          <div class="gift-title">闪亮钻石</div>
          <div class="gift-price">¥99</div>
        </div>
        <div class="gift-box" data-price="199">
          <div class="gift-icon"><i class="fa fa-rocket"></i></div>
          <div class="gift-title">星际火箭</div>
          <div class="gift-price">¥199</div>
        </div>
        <div class="gift-box" data-price="299">
          <div class="gift-icon"><i class="fa fa-car"></i></div>
          <div class="gift-title">豪华跑车</div>
          <div class="gift-price">¥299</div>
        </div>
        <div class="gift-box" data-price="59">
          <div class="gift-icon"><i class="fa fa-coffee"></i></div>
          <div class="gift-title">咖啡一杯</div>
          <div class="gift-price">¥59</div>
        </div>
        <div class="gift-box" data-price="129">
          <div class="gift-icon"><i class="fa fa-music"></i></div>
          <div class="gift-title">音乐会员</div>
          <div class="gift-price">¥129</div>
        </div>
        <div class="gift-box" data-price="259">
          <div class="gift-icon"><i class="fa fa-plane"></i></div>
          <div class="gift-title">私人飞机</div>
          <div class="gift-price">¥259</div>
        </div>
        <div class="gift-box" data-price="39">
          <div class="gift-icon"><i class="fa fa-heart"></i></div>
          <div class="gift-title">爱心一颗</div>
          <div class="gift-price">¥39</div>
        </div>
        <div class="gift-box" data-price="89">
          <div class="gift-icon"><i class="fa fa-star"></i></div>
          <div class="gift-title">星星点灯</div>
          <div class="gift-price">¥89</div>
        </div>
        <div class="gift-box" data-price="399">
          <div class="gift-icon"><i class="fa fa-paint-brush"></i></div>
          <div class="gift-title">艺术画作</div>
          <div class="gift-price">¥399</div>
        </div>
      </div>
      
      <div class="message-area">
        <textarea class="message-input" placeholder="写下你想对TA说的话..."></textarea>
        <div class="message-hint">0/50</div>
      </div>
      
      <div class="action-bar">
        <div class="total-info">
          <span class="total-label">合计：</span>
          <span class="total-amount">¥0</span>
        </div>
        <button class="send-btn" disabled>赠送礼物</button>
      </div>
    </div>
    
    <!-- 风格2：活力粉 -->
    <div class="send-gift-page" id="page2">
      <div class="page-header">
        <button class="header-back"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">赠送礼物</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-history"></i></button>
        </div>
      </div>
      
      <div class="recipient-info">
        <img src="https://picsum.photos/id/68/200/200" alt="接收者头像" class="recipient-avatar">
        <div class="recipient-details">
          <div class="recipient-name">林小雨</div>
          <div class="recipient-status">在线 · 正在输入...</div>
        </div>
      </div>
      
      <div class="gift-categories">
        <div class="category-scroll">
          <div class="category-item active">全部礼物</div>
          <div class="category-item">少女心</div>
          <div class="category-item">美妆护肤</div>
          <div class="category-item">鲜花礼品</div>
          <div class="category-item">时尚配饰</div>
          <div class="category-item">定制惊喜</div>
        </div>
      </div>
      
      <div class="gift-grid">
        <div class="gift-box" data-price="89">
          <div class="gift-icon"><i class="fa fa-heart"></i></div>
          <div class="gift-title">粉色爱心</div>
          <div class="gift-price">¥89</div>
        </div>
        <div class="gift-box" data-price="159">
          <div class="gift-icon"><i class="fa fa-flower"></i></div>
          <div class="gift-title">玫瑰一束</div>
          <div class="gift-price">¥159</div>
        </div>
        <div class="gift-box" data-price="259">
          <div class="gift-icon"><i class="fa fa-gem"></i></div>
          <div class="gift-title">水晶项链</div>
          <div class="gift-price">¥259</div>
        </div>
        <div class="gift-box" data-price="129">
          <div class="gift-icon"><i class="fa fa-lipstick"></i></div>
          <div class="gift-title">名牌口红</div>
          <div class="gift-price">¥129</div>
        </div>
        <div class="gift-box" data-price="199">
          <div class="gift-icon"><i class="fa fa-camera"></i></div>
          <div class="gift-title">拍立得相机</div>
          <div class="gift-price">¥199</div>
        </div>
        <div class="gift-box" data-price="299">
          <div class="gift-icon"><i class="fa fa-spa"></i></div>
          <div class="gift-title">SPA体验</div>
          <div class="gift-price">¥299</div>
        </div>
      </div>
      
      <div class="message-area">
        <textarea class="message-input" placeholder="写下你想对TA说的话..."></textarea>
        <div class="message-hint">0/50</div>
      </div>
      
      <div class="action-bar">
        <div class="total-info">
          <span class="total-label">合计：</span>
          <span class="total-amount">¥0</span>
        </div>
        <button class="send-btn" disabled>赠送礼物</button>
      </div>
    </div>
    
    <!-- 风格3：生态绿 -->
    <div class="send-gift-page" id="page3">
      <div class="page-header">
        <button class="header-back"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">赠送礼物</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-history"></i></button>
        </div>
      </div>
      
      <div class="recipient-info">
        <img src="https://picsum.photos/id/70/200/200" alt="接收者头像" class="recipient-avatar">
        <div class="recipient-details">
          <div class="recipient-name">李建国</div>
          <div class="recipient-status">在线 · 查看了环保活动</div>
        </div>
      </div>
      
      <div class="gift-categories">
        <div class="category-scroll">
          <div class="category-item active">全部礼物</div>
          <div class="category-item">绿植盆栽</div>
          <div class="category-item">环保用品</div>
          <div class="category-item">公益捐赠</div>
          <div class="category-item">户外装备</div>
          <div class="category-item">有机食品</div>
        </div>
      </div>
      
      <div class="gift-grid">
        <div class="gift-box" data-price="69">
          <div class="gift-icon"><i class="fa fa-tree"></i></div>
          <div class="gift-title">小树苗</div>
          <div class="gift-price">¥69</div>
        </div>
        <div class="gift-box" data-price="129">
          <div class="gift-icon"><i class="fa fa-leaf"></i></div>
          <div class="gift-title">绿叶勋章</div>
          <div class="gift-price">¥129</div>
        </div>
        <div class="gift-box" data-price="99">
          <div class="gift-icon"><i class="fa fa-seedling"></i></div>
          <div class="gift-title">多肉植物</div>
          <div class="gift-price">¥99</div>
        </div>
        <div class="gift-box" data-price="159">
          <div class="gift-icon"><i class="fa fa-recycle"></i></div>
          <div class="gift-title">环保套装</div>
          <div class="gift-price">¥159</div>
        </div>
        <div class="gift-box" data-price="199">
          <div class="gift-icon"><i class="fa fa-hands-helping"></i></div>
          <div class="gift-title">公益捐赠</div>
          <div class="gift-price">¥199</div>
        </div>
        <div class="gift-box" data-price="259">
          <div class="gift-icon"><i class="fa fa-hiking"></i></div>
          <div class="gift-title">户外背包</div>
          <div class="gift-price">¥259</div>
        </div>
      </div>
      
      <div class="message-area">
        <textarea class="message-input" placeholder="写下你想对TA说的话..."></textarea>
        <div class="message-hint">0/50</div>
      </div>
      
      <div class="action-bar">
        <div class="total-info">
          <span class="total-label">合计：</span>
          <span class="total-amount">¥0</span>
        </div>
        <button class="send-btn" disabled>赠送礼物</button>
      </div>
    </div>
    
    <!-- 风格4：温暖橙 -->
    <div class="send-gift-page" id="page4">
      <div class="page-header">
        <button class="header-back"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">赠送礼物</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-history"></i></button>
        </div>
      </div>
      
      <div class="recipient-info">
        <img src="https://picsum.photos/id/72/200/200" alt="接收者头像" class="recipient-avatar">
        <div class="recipient-details">
          <div class="recipient-name">赵大厨</div>
          <div class="recipient-status">在线 · 分享了新菜品</div>
        </div>
      </div>
      
      <div class="gift-categories">
        <div class="category-scroll">
          <div class="category-item active">全部礼物</div>
          <div class="category-item">美食礼盒</div>
          <div class="category-item">厨房用具</div>
          <div class="category-item">食材原料</div>
          <div class="category-item">烹饪课程</div>
          <div class="category-item">餐厅体验</div>
        </div>
      </div>
      
      <div class="gift-grid">
        <div class="gift-box" data-price="129">
          <div class="gift-icon"><i class="fa fa-utensils"></i></div>
          <div class="gift-title">厨艺套装</div>
          <div class="gift-price">¥129</div>
        </div>
        <div class="gift-box" data-price="189">
          <div class="gift-icon"><i class="fa fa-birthday-cake"></i></div>
          <div class="gift-title">定制蛋糕</div>
          <div class="gift-price">¥189</div>
        </div>
        <div class="gift-box" data-price="269">
          <div class="gift-icon"><i class="fa fa-hat-chef"></i></div>
          <div class="gift-title">烹饪课程</div>
          <div class="gift-price">¥269</div>
        </div>
        <div class="gift-box" data-price="99">
          <div class="gift-icon"><i class="fa fa-coffee"></i></div>
          <div class="gift-title">精品咖啡</div>
          <div class="gift-price">¥99</div>
        </div>
        <div class="gift-box" data-price="159">
          <div class="gift-icon"><i class="fa fa-wine-bottle"></i></div>
          <div class="gift-title">红酒礼盒</div>
          <div class="gift-price">¥159</div>
        </div>
        <div class="gift-box" data-price="299">
          <div class="gift-icon"><i class="fa fa-utensil-spoon"></i></div>
          <div class="gift-title">米其林体验</div>
          <div class="gift-price">¥299</div>
        </div>
      </div>
      
      <div class="message-area">
        <textarea class="message-input" placeholder="写下你想对TA说的话..."></textarea>
        <div class="message-hint">0/50</div>
      </div>
      
      <div class="action-bar">
        <div class="total-info">
          <span class="total-label">合计：</span>
          <span class="total-amount">¥0</span>
        </div>
        <button class="send-btn" disabled>赠送礼物</button>
      </div>
    </div>
    
    <!-- 风格5：梦幻紫 -->
    <div class="send-gift-page" id="page5">
      <div class="page-header">
        <button class="header-back"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">赠送礼物</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-history"></i></button>
        </div>
      </div>
      
      <div class="recipient-info">
        <img src="https://picsum.photos/id/74/200/200" alt="接收者头像" class="recipient-avatar">
        <div class="recipient-details">
          <div class="recipient-name">吴艺</div>
          <div class="recipient-status">在线 · 发布了新作品</div>
        </div>
      </div>
      
      <div class="gift-categories">
        <div class="category-scroll">
          <div class="category-item active">全部礼物</div>
          <div class="category-item">艺术用品</div>
          <div class="category-item">音乐会员</div>
          <div class="category-item">书籍杂志</div>
          <div class="category-item">创意礼品</div>
          <div class="category-item">展览门票</div>
        </div>
      </div>
      
      <div class="gift-grid">
        <div class="gift-box" data-price="159">
          <div class="gift-icon"><i class="fa fa-paint-brush"></i></div>
          <div class="gift-title">绘画套装</div>
          <div class="gift-price">¥159</div>
        </div>
        <div class="gift-box" data-price="129">
          <div class="gift-icon"><i class="fa fa-headphones"></i></div>
          <div class="gift-title">音乐会员</div>
          <div class="gift-price">¥129</div>
        </div>
        <div class="gift-box" data-price="199">
          <div class="gift-icon"><i class="fa fa-book"></i></div>
          <div class="gift-title">精选图书</div>
          <div class="gift-price">¥199</div>
        </div>
        <div class="gift-box" data-price="259">
          <div class="gift-icon"><i class="fa fa-university"></i></div>
          <div class="gift-title">美术馆门票</div>
          <div class="gift-price">¥259</div>
        </div>
        <div class="gift-box" data-price="299">
          <div class="gift-icon"><i class="fa fa-music"></i></div>
          <div class="gift-title">音乐会门票</div>
          <div class="gift-price">¥299</div>
        </div>
        <div class="gift-box" data-price="359">
          <div class="gift-icon"><i class="fa fa-camera"></i></div>
          <div class="gift-title">拍立得相机</div>
          <div class="gift-price">¥359</div>
        </div>
      </div>
      
      <div class="message-area">
        <textarea class="message-input" placeholder="写下你想对TA说的话..."></textarea>
        <div class="message-hint">0/50</div>
      </div>
      
      <div class="action-bar">
        <div class="total-info">
          <span class="total-label">合计：</span>
          <span class="total-amount">¥0</span>
        </div>
        <button class="send-btn" disabled>赠送礼物</button>
      </div>
    </div>
    
    <!-- 风格6：商务黑 -->
    <div class="send-gift-page" id="page6">
      <div class="page-header">
        <button class="header-back"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">赠送礼物</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-history"></i></button>
        </div>
      </div>
      
      <div class="recipient-info">
        <img src="https://picsum.photos/id/76/200/200" alt="接收者头像" class="recipient-avatar">
        <div class="recipient-details">
          <div class="recipient-name">张总</div>
          <div class="recipient-status">在线 · 查看了合作方案</div>
        </div>
      </div>
      
      <div class="gift-categories">
        <div class="category-scroll">
          <div class="category-item active">全部礼物</div>
          <div class="category-item">商务礼品</div>
          <div class="gift-icon"><i class="fa fa-trophy"></i></div>
          <div class="category-item">企业服务</div>
          <div class="category-item">高端定制</div>
          <div class="category-item">会员权益</div>
        </div>
      </div>
      
      <div class="gift-grid">
        <div class="gift-box" data-price="399">
          <div class="gift-icon"><i class="fa fa-trophy"></i></div>
          <div class="gift-title">年度成就奖</div>
          <div class="gift-price">¥399</div>
        </div>
        <div class="gift-box" data-price="499">
          <div class="gift-icon"><i class="fa fa-handshake-o"></i></div>
          <div class="gift-title">合作纪念章</div>
          <div class="gift-price">¥499</div>
        </div>
        <div class="gift-box" data-price="299">
          <div class="gift-icon"><i class="fa fa-star"></i></div>
          <div class="gift-title">团队之星</div>
          <div class="gift-price">¥299</div>
        </div>
        <div class="gift-box" data-price="599">
          <div class="gift-icon"><i class="fa fa-building"></i></div>
          <div class="gift-title">企业会员</div>
          <div class="gift-price">¥599</div>
        </div>
        <div class="gift-box" data-price="699">
          <div class="gift-icon"><i class="fa fa-plane"></i></div>
          <div class="gift-title">商务差旅</div>
          <div class="gift-price">¥699</div>
        </div>
        <div class="gift-box" data-price="899">
          <div class="gift-icon"><i class="fa fa-certificate"></i></div>
          <div class="gift-title">高端认证</div>
          <div class="gift-price">¥899</div>
        </div>
      </div>
      
      <div class="message-area">
        <textarea class="message-input" placeholder="写下你想对TA说的话..."></textarea>
        <div class="message-hint">0/50</div>
      </div>
      
      <div class="action-bar">
        <div class="total-info">
          <span class="total-label">合计：</span>
          <span class="total-amount">¥0</span>
        </div>
        <button class="send-btn" disabled>赠送礼物</button>
      </div>
    </div>
  </div>
  
  <!-- Bootstrap JS -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
  
  <script>
    // 当前状态
    let currentStyle = 1;
    let selectedGifts = [];
    
    // DOM元素
    const switcherToggle = document.querySelector('.switcher-toggle');
    const switcher = document.querySelector('.style-switcher');
    const switcherClose = document.querySelector('.switcher-close');
    const switcherOptions = document.querySelectorAll('.switcher-option');
    const giftPages = {
      1: document.getElementById('page1'),
      2: document.getElementById('page2'),
      3: document.getElementById('page3'),
      4: document.getElementById('page4'),
      5: document.getElementById('page5'),
      6: document.getElementById('page6')
    };
    const bodyElement = document.body;
    
    // 初始化
    function init() {
      // 切换器控制
      switcherToggle.addEventListener('click', toggleSwitcher);
      switcherClose.addEventListener('click', toggleSwitcher);
      
      // 切换样式
      switcherOptions.forEach(option => {
        option.addEventListener('click', function() {
          const style = parseInt(this.getAttribute('data-style'));
          switchStyle(style);
          toggleSwitcher();
        });
      });
      
      // 初始化所有页面的交互
      initPageInteractions();
    }
    
    // 初始化页面交互
    function initPageInteractions() {
      // 为每个页面初始化交互
      for (let i = 1; i <= 6; i++) {
        const page = giftPages[i];
        
        // 礼物选择
        const giftBoxes = page.querySelectorAll('.gift-box');
        giftBoxes.forEach(box => {
          box.addEventListener('click', function() {
            const price = parseInt(this.getAttribute('data-price'));
            const giftId = `${i}-${this.querySelector('.gift-title').textContent}`;
            
            // 检查是否已选中
            if (this.classList.contains('selected')) {
              // 取消选择
              this.classList.remove('selected');
              // 从选中列表中移除
              selectedGifts = selectedGifts.filter(gift => gift.id !== giftId);
            } else {
              // 选中礼物
              this.classList.add('selected');
              // 添加到选中列表
              selectedGifts.push({
                id: giftId,
                price: price,
                name: this.querySelector('.gift-title').textContent
              });
            }
            
            // 更新总价
            updateTotalPrice(page);
          });
        });
        
        // 分类切换
        const categoryItems = page.querySelectorAll('.category-item');
        categoryItems.forEach(item => {
          item.addEventListener('click', function() {
            // 移除其他分类的active类
            categoryItems.forEach(cat => cat.classList.remove('active'));
            // 为当前分类添加active类
            this.classList.add('active');
            // 这里可以添加分类筛选逻辑
          });
        });
        
        // 留言输入限制
        const messageInput = page.querySelector('.message-input');
        const messageHint = page.querySelector('.message-hint');
        messageInput.addEventListener('input', function() {
          const length = this.value.length;
          messageHint.textContent = `${length}/50`;
          // 限制最大长度
          if (length > 50) {
            this.value = this.value.substring(0, 50);
            messageHint.textContent = `50/50`;
          }
        });
        
        // 赠送按钮
        const sendBtn = page.querySelector('.send-btn');
        sendBtn.addEventListener('click', function() {
          if (selectedGifts.length === 0) return;
          
          const recipientName = page.querySelector('.recipient-name').textContent;
          const message = page.querySelector('.message-input').value || '无留言';
          const totalAmount = page.querySelector('.total-amount').textContent;
          
          const giftNames = selectedGifts.map(gift => gift.name).join('、');
          
          alert(`成功向${recipientName}赠送了${giftNames}，${message}，共计${totalAmount}`);
          
          // 清空选择
          selectedGifts = [];
          giftBoxes.forEach(box => box.classList.remove('selected'));
          updateTotalPrice(page);
          messageInput.value = '';
          messageHint.textContent = '0/50';
        });
        
        // 返回按钮
        const backBtn = page.querySelector('.header-back');
        backBtn.addEventListener('click', function() {
          alert('返回上一页');
        });
        
        // 历史按钮
        const historyBtn = page.querySelector('.header-btn.fa-history');
        historyBtn.addEventListener('click', function() {
          alert('查看赠送礼物历史记录');
        });
      }
    }
    
    // 更新总价
    function updateTotalPrice(page) {
      const totalElement = page.querySelector('.total-amount');
      const sendBtn = page.querySelector('.send-btn');
      
      const total = selectedGifts.reduce((sum, gift) => sum + gift.price, 0);
      totalElement.textContent = `¥${total}`;
      
      // 启用/禁用赠送按钮
      if (total > 0) {
        sendBtn.removeAttribute('disabled');
      } else {
        sendBtn.setAttribute('disabled', 'disabled');
      }
    }
    
    // 切换样式选择器显示/隐藏
    function toggleSwitcher() {
      switcher.classList.toggle('hidden');
    }
    
    // 关闭所有页面
    function closeAllPages() {
      Object.values(giftPages).forEach(page => {
        page.classList.remove('active');
      });
    }
    
    // 切换样式
    function switchStyle(style) {
      // 重置选中状态
      selectedGifts = [];
      
      // 移除所有样式类
      bodyElement.classList.remove('style-1', 'style-2', 'style-3', 'style-4', 'style-5', 'style-6');
      
      // 添加当前样式类
      bodyElement.classList.add(`style-${style}`);
      
      // 更新当前样式
      currentStyle = style;
      
      // 更新切换器选中状态
      switcherOptions.forEach(option => {
        option.classList.remove('active');
        if (parseInt(option.getAttribute('data-style')) === style) {
          option.classList.add('active');
        }
      });
      
      // 清除所有页面的礼物选中状态并更新总价
      for (let i = 1; i <= 6; i++) {
        const page = giftPages[i];
        page.querySelectorAll('.gift-box').forEach(box => {
          box.classList.remove('selected');
        });
        page.querySelector('.total-amount').textContent = '¥0';
        page.querySelector('.send-btn').setAttribute('disabled', 'disabled');
        page.querySelector('.message-input').value = '';
        page.querySelector('.message-hint').textContent = '0/50';
      }
      
      // 显示对应页面
      closeAllPages();
      giftPages[style].classList.add('active');
    }
    
    // 键盘导航
    document.addEventListener('keydown', function(e) {
      if (e.key === 'ArrowLeft') {
        let prev = currentStyle - 1;
        if (prev < 1) prev = 6;
        switchStyle(prev);
      } else if (e.key === 'ArrowRight') {
        let next = currentStyle + 1;
        if (next > 6) next = 1;
        switchStyle(next);
      }
    });
    
    // 启动
    init();
  </script>
</body>
</html>
